package com.zwk.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwk.common.utils.PageUtils;
import com.zwk.gulimall.ware.entity.WareSkuEntity;
import com.zwk.common.to.SkuHasStockTo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author zhuwenkang
 * @email zhuwenkang@gmail.com
 * @date 2022-12-30 23:12:36
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);


    void addStock(Long skuId, Long wareId, Integer skuNum);

    /**
     * 判断是否有库存
     * @param skuIds
     * @return
     */
    List<SkuHasStockTo> getSkuHasStock(List<Long> skuIds);
}

